﻿using System;
/* Problem 2. Compare arrays

Write a program that reads two integer arrays from the console and compares them element by element.
 */

namespace _02.CompareArrays
{
    class CompareArrays
    {
        static void Main()
        {
            Console.WriteLine("Enter array dimenson");
            int arrayLength = int.Parse(Console.ReadLine());
            int[] array1 = new int[arrayLength];
            int[] array2 = new int[arrayLength];
            for (int i = 0; i < array1.Length; i++)
            {
                Console.WriteLine("Enter {0} elemen of the first array",i);
                array1[i] = int.Parse(Console.ReadLine());
            }
            for (int i = 0; i < array2.Length; i++)
            {
                Console.WriteLine("Enter {0} elemen of the second array",i);
                array2[i] = int.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arrayLength; i++)
            {
                Console.WriteLine(array1[i]==array2[i]);
            }
        }
    }
}
